# Maintainer: omni <omni+alpine@hack.org>
pkgname=rset
pkgver=3.1
pkgrel=1
pkgdesc="Configure systems using any scripting language"
url="https://scriptedconfiguration.org/"
license="ISC"
arch="all"
# busybox awk is currently broken (busybox >1.36.1-r32)
depends="gawk"
checkdepends="curl ruby-bundler"
subpackages="$pkgname-doc"
source="https://scriptedconfiguration.org/code/rset-$pkgver.tar.gz
	tests_Makefile.patch
	"

build() {
	./configure
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
	install -Dm0644 NEWS -t "$pkgdir"/usr/share/doc/"$pkgname"
	install -Dm0644 LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname"
}

sha512sums="
0fc751eee5c03d657d22016f83a45e651faa46b0328ec07167d510fa2fc08afeab4c782ca94668fc10fdfce2823fae9a290a4a67333b77c732ca31017cd7de03  rset-3.1.tar.gz
bbd9e433bc770b43329be6c3b0a621f54340bd9d2a9c542f982a256491caafd92825e30b053500f4d49cd2fa4087bd1830bd36d9e4822a91df66c2c6a3bf73d2  tests_Makefile.patch
"
